﻿
<div>
<div style="padding:20px 10px 20px 10px;">


<div><input id="picUrl" type="text" style="width:500px;" /></div>

<div style="margin:10px 10px; text-align:center;">
    <input id="btnSubmit" type="button" value="提交" class="btn" />
    <input type="button" class="btnCancel" value="_{cancel}" />
</div>

</div>
</div>

<script>
_run( function() {

    $('#picUrl').focus();
    
    $('#btnSubmit').click( function() {
    
        var picUrl = $('#picUrl').val();
        if( picUrl==false ) {
            alert( '请填写图片网址' );
            $('#picUrl').focus();
            return false;
        }
        
        var p = wojilu.tool.getBoxParent();

        p.setBgPic( picUrl, picUrl );
        p.wojilu.ui.box.hideBox();
        
    });

});
</script>